<?php

namespace Modules\Common\General\Text;


use Modules\Common\Models\Text;
use Modules\Common\Util\Api;

class RetrieveController
{

    /**
     * @Route(path=api/text)
     */
    public function index()
    {
        $data = Text::where(['unique_key' => request('unique_key')])->first(['name', 'content']);
        return Api::success($data);
    }
}
